import request from '@/utils/request'

// 查询退款记录列表
export function listRefundRecord(query) {
  return request({
    url: '/order/refund/list',
    method: 'get',
    params: query
  })
}

// 查询退款记录详细
export function getRefundRecord(id) {
  return request({
    url: '/order/refund/' + id,
    method: 'get'
  })
}

// 导出退款记录
export function exportTuikuanjilu(query) {
  return request({
    url: '/order/refund/export',
    method: 'get',
    params: query
  })
}

// 删除退款记录
export function delRefundRecord(id) {
  return request({
    url: '/order/refund/' + id,
    method: 'delete'
  })
}

// 审核退款申请
export function auditRefund(data) {
  return request({
    url: '/order/refund/audit',
    method: 'post',
    data: data
  })
} 